package com.netease.b.a;

import com.netease.framework.b.a;
import com.netease.framework.b.c;
import com.netease.framework.b.d;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;

public abstract class j extends ag
  implements d
{
  protected static final int l = -1000;
  Object[] m = new Object[0];
  List n;

  protected j(int paramInt)
  {
    super(paramInt);
  }

  private void e(int paramInt)
  {
    if (this.n != null)
      while (true)
      {
        synchronized (this.m)
        {
          Iterator localIterator = this.n.iterator();
          if (localIterator.hasNext())
          {
            locala = (a)localIterator.next();
            if (locala.m() != paramInt)
              continue;
            if (locala == null)
              continue;
            this.n.remove(locala);
          }
        }
        a locala = null;
      }
  }

  protected a a(int paramInt)
  {
    if (this.n != null)
      while (true)
      {
        synchronized (this.m)
        {
          Iterator localIterator = this.n.iterator();
          if (localIterator.hasNext())
          {
            locala = (a)localIterator.next();
            if (locala.m() != paramInt)
              continue;
          }
        }
        locala = null;
      }
    a locala = null;
    return locala;
  }

  public final void a(int paramInt1, int paramInt2, int paramInt3, Object paramObject)
  {
    if (paramInt1 != -1000)
      e(paramInt3);
    c(paramInt1, paramInt2, paramInt3, paramObject);
    if (f())
      h();
  }

  protected void a(a parama)
  {
    a(parama, true);
  }

  protected void a(a parama, boolean paramBoolean)
  {
    parama.c(l());
    parama.b(j());
    parama.a(this);
    synchronized (this.m)
    {
      if (this.n == null)
        this.n = new LinkedList();
      this.n.add(parama);
      if (paramBoolean)
        g().a(parama);
      return;
    }
  }

  // ERROR //
  protected void b()
  {
    // Byte code:
    //   0: aload_0
    //   1: getfield 24	com/netease/b/a/j:n	Ljava/util/List;
    //   4: ifnonnull +4 -> 8
    //   7: return
    //   8: aload_0
    //   9: getfield 21	com/netease/b/a/j:m	[Ljava/lang/Object;
    //   12: astore_1
    //   13: aload_1
    //   14: monitorenter
    //   15: aload_0
    //   16: getfield 24	com/netease/b/a/j:n	Ljava/util/List;
    //   19: invokeinterface 30 1 0
    //   24: astore_3
    //   25: aload_3
    //   26: invokeinterface 36 1 0
    //   31: ifeq +49 -> 80
    //   34: aload_3
    //   35: invokeinterface 40 1 0
    //   40: checkcast 42	com/netease/framework/b/a
    //   43: astore 4
    //   45: aload_0
    //   46: invokevirtual 92	com/netease/b/a/j:g	()Lcom/netease/framework/b/c;
    //   49: aload 4
    //   51: invokevirtual 45	com/netease/framework/b/a:m	()I
    //   54: invokestatic 103	java/lang/Integer:valueOf	(I)Ljava/lang/Integer;
    //   57: invokevirtual 106	com/netease/framework/b/c:a	(Ljava/lang/Integer;)Lcom/netease/framework/b/e;
    //   60: ifnonnull -35 -> 25
    //   63: aload_0
    //   64: invokevirtual 92	com/netease/b/a/j:g	()Lcom/netease/framework/b/c;
    //   67: aload 4
    //   69: invokevirtual 97	com/netease/framework/b/c:a	(Lcom/netease/framework/b/e;)V
    //   72: goto -47 -> 25
    //   75: astore_2
    //   76: aload_1
    //   77: monitorexit
    //   78: aload_2
    //   79: athrow
    //   80: aload_1
    //   81: monitorexit
    //   82: goto -75 -> 7
    //
    // Exception table:
    //   from	to	target	type
    //   15	78	75	finally
    //   80	82	75	finally
  }

  public final void b(int paramInt1, int paramInt2, int paramInt3, Object paramObject)
  {
    if (paramInt1 != -1000)
      e(paramInt3);
    d(paramInt1, paramInt2, paramInt3, paramObject);
    if (f())
      h();
  }

  public abstract void c(int paramInt1, int paramInt2, int paramInt3, Object paramObject);

  public abstract void d(int paramInt1, int paramInt2, int paramInt3, Object paramObject);

  // ERROR //
  public void e()
  {
    // Byte code:
    //   0: aload_0
    //   1: invokespecial 111	com/netease/b/a/ag:e	()V
    //   4: aload_0
    //   5: getfield 24	com/netease/b/a/j:n	Ljava/util/List;
    //   8: ifnull +51 -> 59
    //   11: aload_0
    //   12: getfield 21	com/netease/b/a/j:m	[Ljava/lang/Object;
    //   15: astore_1
    //   16: aload_1
    //   17: monitorenter
    //   18: aload_0
    //   19: getfield 24	com/netease/b/a/j:n	Ljava/util/List;
    //   22: invokeinterface 30 1 0
    //   27: astore_3
    //   28: aload_3
    //   29: invokeinterface 36 1 0
    //   34: ifeq +23 -> 57
    //   37: aload_3
    //   38: invokeinterface 40 1 0
    //   43: checkcast 42	com/netease/framework/b/a
    //   46: invokevirtual 112	com/netease/framework/b/a:e	()V
    //   49: goto -21 -> 28
    //   52: astore_2
    //   53: aload_1
    //   54: monitorexit
    //   55: aload_2
    //   56: athrow
    //   57: aload_1
    //   58: monitorexit
    //   59: return
    //
    // Exception table:
    //   from	to	target	type
    //   18	55	52	finally
    //   57	59	52	finally
  }

  protected boolean f()
  {
    if ((this.n == null) || (this.n.size() == 0));
    for (int i = 1; ; i = 0)
      return i;
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.b.a.j
 * JD-Core Version:    0.6.0
 */